package com.xinqi.modules.exam.analyze.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinqi.common.mybatis.data.repo.SuperMapper;
import com.xinqi.modules.exam.analyze.domain.CourseExamPaperAnalyzeEntity;
import com.xinqi.modules.exam.analyze.dto.req.CourseExamAnalyzeStudentScoreQuestDTO;
import com.xinqi.modules.exam.analyze.dto.req.CourseExamPaperAnalyzeQueryDTO;
import com.xinqi.modules.exam.analyze.dto.rsp.CourseExamAnalyzeStudentScoreDTO;
import com.xinqi.modules.exam.analyze.dto.rsp.CourseExamPaperAnalyzeResultDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 课程测评分析数据层
 *
 * @author: linkai
 * @date: 2023/07/02
 */
@Mapper
public interface CourseExamPaperAnalyzeMapper extends SuperMapper<CourseExamPaperAnalyzeEntity> {
    Page<CourseExamPaperAnalyzeResultDTO> findPage(Page<Object> page, @Param("dto") CourseExamPaperAnalyzeQueryDTO query);

    List<CourseExamPaperAnalyzeResultDTO> findList(@Param("dto") CourseExamPaperAnalyzeQueryDTO query);

    Page<CourseExamAnalyzeStudentScoreDTO> findStudentScore(Page<Object> page, @Param("dto") CourseExamAnalyzeStudentScoreQuestDTO questDTO);
}
